package com.kaifamiao.poly;

import java.util.logging.Logger;

public class Human {

    protected Logger logger = Logger.getGlobal();

    protected String name;

    public Human() {
        super();
    }

    public Human(String name) {
        this.name = name;
    }

    public void eat(String food){
        logger.info( String.format("%s正在吃%s", name, food));
    }

    public static void main(String[] args) {
        Human h = new Human("张三丰");
        h.eat( "肉夹馍" );
    }

}
